package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * json相关的返回值
 */
//@Controller
//@ResponseBody
@RestController
public class JsonController {

    @RequestMapping("json")
    //@ResponseBody
    public BaseRespVo json() {
        return BaseRespVo.ok("json");
    }
}
